import request from '@/utils/request'

//获取角色
export function getRole(payload) {
    const params = payload
    return request({
      url: 'api/roles',
      method: 'get',
      params
    })
  }
//   
// 添加角色
export function getAddRole(payload) {
    const data = payload
    return request({
      url: 'api/role',
      method: 'post',
      data
    })
  }